Skip to content

Fix Docker build on PRs#2

Merged
rahulkatiyar19955 merged 1 commit intomainfrom
fix/ci-pr
Aug 6, 2025
Merged

Fix Docker build on PRs#2
rahulkatiyar19955 merged 1 commit intomainfrom
fix/ci-pr

Conversation

@rahulkatiyar19955
Copy link
Contributor

This pull request updates the Docker build and push workflow to improve its robustness and flexibility, especially in handling DockerHub credentials. The main changes ensure that the workflow can fall back to a default DockerHub username if the secret is not set, and introduce a new environment variable for organization.

Workflow improvements:

  • Added a new environment variable ORG set to filedash to the workflow environment for potential future use.

Credential handling and fallback logic:

  • Updated the images and repository fields in the Docker metadata and publish steps to use ${{ secrets.DOCKERHUB_USERNAME || 'testuser' }}. This provides a fallback to 'testuser' if the DockerHub username secret is not set, improving workflow reliability. [1] [2]…e proper environment variable usage

@rahulkatiyar19955 rahulkatiyar19955 merged commit 8722879 into main Aug 6, 2025
1 check passed
@rahulkatiyar19955 rahulkatiyar19955 self-assigned this Aug 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant